/*
 * 描述: 封装组件库
 */


import bgAnimation from '../views/bgAnimation/index.vue' // 登录界面背景图动画


const components = {
    bgAnimation,

};

const install = (Vue = {
    component(name, component1: any) {

    }
}) => {
    if (install.installed) return;
    Object.keys(components).forEach(component => {
        Vue.component(components[component].name, components[component]);
    });

    install.installed = true;
};

install.installed = false;

if (typeof window !== "undefined" && window.Vue) {
    install(window.Vue);
    install.installed = true;
}

const Vcomp = {
    ...components,
    install
};


export default Vcomp
